<?php

$cid = $_POST['cid'];

include '../../../config/database.php';

$con = mysqli_connect($dbhost,$dbuser,$dbpasswd,$dbname);

$sqlname = $dbprefix.'messages';

$sqli = "DELETE FROM `".$sqlname."` WHERE `id` = ".$cid;

mysqli_query($con,$sqli);

echo json_encode(array('code' => 0,'data' => array('msg' => '已删除留言，CID:'.$cid))  , JSON_UNESCAPED_UNICODE);

?>